Repository navigation
Prove synthetic resume across subprocess crashes - #71
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d184d1bbb6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| }); | ||
| assert.equal(crashed.code, 74); | ||
| assert.throws(() => readFileSync(effectMarker)); | ||
| const restarted = await runWorker(seeded, 'normal', { DSS_O08_PROVIDER_EFFECT_MARKER: effectMarker }); |
There was a problem hiding this comment.
Instrument every worker that receives the effect marker
When this crash test runs either the crash-after-dispatch-marker worker or the restarted normal worker, DSS_O08_PROVIDER_EFFECT_MARKER is ignored because the recording adapter is installed only for crash-after-outcome-blob. A provider invocation before the dispatch-marker crash or during restart would therefore leave the marker unchanged and these assertions would still pass, so the claimed no-effect/no-replay behavior is not actually tested. Install the recording adapter whenever the marker variable is supplied, while keeping the forced outcome-blob exit mode-specific.
Useful? React with 👍 / 👎.
Summary
Adds synthetic subprocess acceptance tests for the existing no-context writable-resume path. A parent test seeds the pinned Comic Manifest fixture in a temporary local store; fresh Node child processes verify:
Every child worker records each actual adapter
execute()entry in a shared per-execution log, including normal restarts. The test also closes its ready-file watcher on every completion path and rechecks file existence after watcher registration. Documentation records the acceptance evidence and corrects stale scope language. No runtime code changed.Scope
Synthetic no-context local filesystem behavior only. These process exits do not simulate power loss or establish guarantees for other filesystems, production storage, or generic exactly-once delivery. No live provider, production data, context-enabled recovery, O09 work, release, deployment, or issue closure. O08 remains open.
Validation at
eb20d8anpm test— 1,018/1,018 passed.npm run test:comic-manifest-conformance— 326/326 passed; offline network tripwire active; 31 fixture files byte-identical.npm test— 1,018/1,018 passed.npm run test:comic-manifest-conformance— 326/326 passed; offline network tripwire active; 31 fixture files byte-identical.